﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Wicresoft.EKA.AccountInfoUpdateApp.Service
{
    public static class DataHelp
    {
        public static string EmailInit(string company)
        {
            if (company == "福州市烟草专卖局")
                return "@fz.fj-tobacco.com";
            else if (company == "宁德市烟草专卖局")
                return "@nd.fj-tobacco.com";
            else if (company == "南平市烟草专卖局")
                return "@np.fj-tobacco.com";
            else if (company == "泉州市烟草专卖局")
                return "@qz.fj-tobacco.com";
            else if (company == "莆田市烟草专卖局")
                return "@pt.fj-tobacco.com";
            else if (company == "厦门市烟草专卖局")
                return "@xm.fj-tobacco.com";
            else if (company == "漳州市烟草专卖局")
                return "@zz.fj-tobacco.com";
            else if (company == "龙岩市烟草专卖局")
                return "@ly.fj-tobacco.com";
            else if (company == "三明市烟草专卖局")
                return "@sm.fj-tobacco.com";
            else if (company == "福建烟草海晟投资管理有限公司")
                return "@ht.fj-tobacco.com";
            else if (company == "三明金叶复烤有限公司")
                return "@jy.fj-tobacco.com";
            else if (company == "中国烟草福建进出口公司")
                return "@jck.fj-tobacco.com";
            else if (company == "福建武夷烟叶有限公司")
                return "@wy.fj-tobacco.com";
            else
                return "@sj.fj-tobacco.com";
        }

        public static bool IsMobilePhone(string input)
        {
            Regex regex = new Regex("^1\\d{10}$");
            return regex.IsMatch(input);
        }
    }
}
